﻿using System.Windows;
using System.Windows.Data;

namespace XYAC.Framework.WohuaMesExtend.IHI.Converters
{
    public class BoolToFontWeightConverter : IValueConverter
    {
        public FontWeight TrueValue { get; set; } = FontWeights.Bold;
        public FontWeight FalseValue { get; set; } = FontWeights.Normal;
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return (bool)value ? FontWeights.Bold : FontWeights.Normal;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
